package com.xayy.health.mgt.model.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * @author zhangxa
 */
@Data
@NoArgsConstructor
public class AlgorithmParseDTO {
    private List<ArrayList<AnomalyDTO>> anomaly;
    private List<ValueDTO> value;
    private List<ArrayList<GraphDTO>> graph;
    private String msg;
    private String paramCode;

    @Data
    @NoArgsConstructor
    public static class AnomalyDTO {
        @JsonProperty("time")
        private String time;
        @JsonProperty("value")
        private Double value;
        @JsonProperty("name")
        private String name;
    }

    @Data
    @NoArgsConstructor
    public static class ValueDTO {
        @JsonProperty("time")
        private String time;
        @JsonProperty("value")
        private Double value;
    }

    @Data
    @NoArgsConstructor
    public static class GraphDTO {
        @JsonProperty("time")
        private String time;
        @JsonProperty("value")
        private Double value;
        @JsonProperty("name")
        private String name;
    }
}
